package com.treeroot.springbootwithmybatis.service;

import com.treeroot.springbootwithmybatis.entity.Emp;
import com.treeroot.springbootwithmybatis.mapper.EmpMapper;
import com.treeroot.springbootwithmybatis.service.Impl.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {
    @Autowired
    private EmpMapper empMapper;

    @Override
    public List<Emp> getAllEmp() {
        List<Emp> allEmp = empMapper.getAllEmp();
        return allEmp;
    }
}
